CXX=g++ -I../olena-1.0/milena/
SRC=src/inim.cc
EXE=inim
CPPFLAGS=-W -Wall -DNDEBUG -O1

all :	$(EXE)

$(EXE):	$(SRC:.cc=.o)
	$(CXX) $(CPPFLAGS) $(INCLUDES) -o $(EXE) $<

%.o :	%.cc
	$(CXX) $(INCLUDES) $(CPPFLAGS) -c -o $@ $<

clean :
	rm -rf *.o **/*.o *~ **/*~ *# **/*# tests/*.p?m tests/*.txt

distclean : clean
	rm -f $(EXE)

check : all
	(cd tests/; ./check.sh)

show : check
	eog tests/*.ppm